const path = require('path')
var axios = require('axios')
var Qs = require ('qs')
const express = require('express')
const app = express()
var apiRoutes = express.Router();
app.use('/api',apiRoutes)

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  devServer: {
    port: 8888,
  },
  publicPath: './',
  lintOnSave: false,
  chainWebpack(config) {
    config.resolve.alias
      .set('components', resolve('src/components'))
      .set('common', resolve('src/common'))
      .set('api', resolve('src/api'))
      .set('base', resolve('src/base'))
      .set('store', resolve('src/store'))
  },
}
